Skip to main content

WidgetBundleUtils

Type

module

Summary

Shared module for several widgets

Description

Shared module for several widgets

Children Properties

Handler

NameSummarySyntax
customCornerRadiusShapeGenerates a rounded rectangle allowing to define the radius of each cornercustomCornerRadiusShape(<pRoundRadius>,<pRect>)
toPointConvert a string or list to pointtoPoint(<pValue>)
getBooleanGet any value as booleangetBoolean(<pValue>)
drawPathInRectFills a pathdrawPathInRect(<pPath>,<pRect>,<pCanvas>,<pSquareBox>,<pMargin>)
getAsNumberGet any value as numbergetAsNumber(<pValue>,<pDefault>)
applyPaintFromDataValueExtract a paint from a data elementapplyPaintFromDataValue(<pDataValue>,<pContext>)
loadPropA helper handler to use in OnLoad handlerloadProp(<pPropName>,<pVariable>,<pPropArray>,<pType>)
resizeTransformImageScale down an imageresizeTransformImage(<pImage>,<pRect>,<pItemArray>)
arrayMergeMerge pSource into pDestination arrayarrayMerge(<pSource>,<pDestination>)
fitPathToRectScales and translates a path to fit within a rectanglefitPathToRect(<pTargetRect>,<xPath>,<pKeepAspect>)
colorNameToColorConvert a color name string to a color typecolorNameToColor(<pValue>,<pDefault>)
isValidStringColorValidates if a given string can be converted to colorisValidStringColor(<pColor>)
fitStringToWidthCuts a string to make it fit the given widthfitStringToWidth(<pString>,<pFont>,<pMaxWidth>,<pCutChars>)
resizeRectForImgResize a rectangle to make an image to fit proportionallyresizeRectForImg(<pImage>,<pRect>,<pResizeType>)
wrapTextInRectMake a string 'multiline'wrapTextInRect(<pTextBox>,<pText>,<pAlign>,<pCanvas>)
getAsColorGet any value as colorgetAsColor(<pValue>,<pDefault>)
fillTextInRectFills a text in a given rect without wrappingfillTextInRect(<pLabel>,<pRect>,<pAlign>,<pMargin>,<pCanvas>)
pointToStringConvert a Point to a x,y style stringpointToString(<pPoint>)
rectangleToStringConverts a rectangle to a string list of itemsrectangleToString(<pRect>)
getAsStringGet any value as stringgetAsString(<pValue>)